package com.winhxd.b2c.customer.service;


import com.winhxd.b2c.common.domain.customer.model.CustomerUserInfo;
import com.winhxd.b2c.common.domain.customer.vo.CustomerUserInfoSimpleVO;
import com.winhxd.b2c.common.domain.system.login.condition.CustomerUserInfoCondition;

public interface CustomerLoginService {

	int saveLoginInfo(CustomerUserInfo customerUserInfo);

	int updateCustomerInfo(CustomerUserInfo customerUserInfo);

	int removeCustomerInfo(Long customerId);

	CustomerUserInfo getCustomerUserInfoByCondition(CustomerUserInfoCondition customerUserInfo);

	CustomerUserInfo getCustomerUserInfoById(Long customerId);
	/**
	 * @return 查询原译店铺信息
	 * @author baishenghu
	 * @Description 根据id批量查询用户信息
	 */
	CustomerUserInfo findCustomerUserByLevel();
	/**
	 * 组装返回数据
	 * @param customer
	 * @return
	 */
	CustomerUserInfoSimpleVO getCustomerUserInfoSimpleVO(CustomerUserInfo customer);

	/**
	 * 绑定原始关系
	 */
	void bindOriginalRelation(Long masterId,String masterOpenId,CustomerUserInfo userSlave);

	/**
	 * 校验手机号是否存在
	 * @param id
	 * @param mobile
	 */
	void checkMobileAndAccount(Long id ,String mobile);
}
